package priv.yiyuan.example.design.message.decorator;

import priv.yiyuan.example.design.message.MessageSender;

/**
 * 消息发送器装饰类
 * <p>
 * 装饰器模式(抽象装饰器)
 *
 * @author YiYuan
 * @data 2025/8/18
 * @apoNote
 */
public abstract class MessageSenderDecorator implements MessageSender {

    protected MessageSender decoratorSender;

    public MessageSenderDecorator(MessageSender decoratorSender) {
        this.decoratorSender = decoratorSender;
    }

    @Override
    public void send(String message) {
        decoratorSender.send(message);
    }

}
